package com.watch.system.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.watch.system.model.dto.UserAuthInfo;
import com.watch.system.model.entity.CarUser;
import com.watch.system.model.entity.SysUser;
import com.watch.system.model.form.CarUserForm;
import com.watch.system.model.form.UserForm;
import com.watch.system.model.query.CarUserPageQuery;
import com.watch.system.model.query.UserPageQuery;
import com.watch.system.model.vo.*;

import java.util.List;

/**
 * 用户业务接口
 *
 * @author haoxr
 * @since 2022/1/14
 */
public interface CarUserService extends IService<CarUser> {

    /**
     * 用户分页列表
     *
     * @return
     */
    IPage<CarUserPageVO> getUserPage(CarUserPageQuery queryParams);


    /**
     * 获取用户表单数据
     *
     * @param userId
     * @return
     */
    UserForm getUserFormData(Long userId);




    /**
     * 修改用户
     *
     * @param userId   用户ID
     * @param userForm 用户表单对象
     * @return
     */
    boolean updateUser(Long userId, UserForm userForm);


    /**
     * 删除用户
     *
     * @param idsStr 用户ID，多个以英文逗号(,)分割
     * @return
     */
    boolean deleteUsers(String idsStr);



    /**
     * 根据用户名获取认证信息
     *
     * @param username 用户名
     * @return {@link UserAuthInfo}
     */

    UserAuthInfo getUserAuthInfo(String username);


    /**
     * 获取导出用户列表
     *
     * @param queryParams
     * @return
     */
    List<CarUserExportVO> listExportUsers(CarUserPageQuery queryParams);


    /**
     * 获取登录用户信息
     *
     * @return
     */
    UserInfoVO getCurrentUserInfo();

    IPage<CarUserPageVO> getUserVipPage(CarUserPageQuery queryParams);

    CarUser getCarUser(Integer userId);

    boolean updateCarUser(Integer userId, CarUserForm userForm);


    boolean updateStatus(Integer userId);

    IPage<CarAuthPageVO> getMyGaragePage(CarUserPageQuery queryParams);

    IPage<CarAdPageVO> getMyAdPage(CarUserPageQuery queryParams);

    IPage<CarUserPageVO> getMyLikePage(CarUserPageQuery queryParams);

    IPage<CarUserPageVO> getMyVisitorPage(CarUserPageQuery queryParams);

    IPage<CarSharePageVO> getMySharePage(CarUserPageQuery queryParams);

    IPage<CarUserPageVO> getMyFollowPage(CarUserPageQuery queryParams);

    boolean saveImport(CarUserImportVO userImportVO);

    IPage<CarAttPageVO> getUserAtrPage(CarUserPageQuery queryParams);
}
